﻿using System;
using System.ComponentModel.DataAnnotations;

namespace SIG.Core
{
    public abstract class AuditableEntity<T> : Entity<T>, IAuditableEntity    
    {
        [Display(Name = "创建日期")]
        [ScaffoldColumn(false)]
        public DateTime CreatedDate { get; set; }

        [Display(Name = "创建者")]
        [MaxLength(256)]
        [ScaffoldColumn(false)]
        public string CreatedBy { get; set; }

        [Display(Name = "最后修改时间")]
        [ScaffoldColumn(false)]
        public DateTime UpdatedDate { get; set; }
        [Display(Name = "最后修改者")]
        [MaxLength(256)]
        [ScaffoldColumn(false)]
        public string UpdatedBy { get; set; }
    }
}
